package com.mobilesalon;

import org.acra.ACRA;
import org.acra.ReportingInteractionMode;
import org.acra.annotation.ReportsCrashes;

import android.app.Application;
import android.content.Context;


@ReportsCrashes(formKey="",
		mailTo = "nfrancoi@gmail.com",
        mode = ReportingInteractionMode.TOAST,
        resToastText = R.string.crash_toast_text // optional, displayed as soon as the crash occurs, before collecting data which can take a few seconds
        )

public class MobileSalonApplication extends Application {
	private static Context appContext;

	@Override
	public void onCreate() {
		ACRA.init(this);
		super.onCreate();
		MobileSalonApplication.appContext = getApplicationContext();
	}

	public static Context getAppContext() {
		return appContext;
	}
}
